const Sequelize     = require('sequelize');
const Config        = require('../config');
const sequelize     = new Sequelize(Config.database, Config.databaseUser, Config.databasePwd, {
    host    : Config.databaseHost,
    dialect : 'mysql',
    operatorsAliases : false,
    pool    : {
        max : 5,
        min : 0,
        acquire : 3000,
        idle    : 1000
    }
});

module.exports = sequelize;